<?php
/**
 * tag列表
 * @link https://codex.wordpress.org/Template_Hierarchy
 *
 * @package 古槐乡情
 * @subpackage 2017-01
 * @since 1.0
 * @version 1.0
 */

get_header(); ?>
<div class="row">
	<div class="col-md-8">
		<div class="panel hlgd-title">
			<div class="panel-heading">“<?php single_cat_title(); ?>”</div>
        	<hr>
            <div class="panel-body imgteaser">
            	<ul class="newsul">
            	<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
				    <?php if(!is_sticky()){?>
				    	<li>
					    	<span class="glyphicon glyphicon-eye-open"><?php post_views(' ', ' '); ?><?php the_time('Y-m-d'); ?></span>
	                        <div>
	                          <a href="<?php the_permalink() ?>" rel="”bookmark”" title="<?php the_title(); ?>">
	                            <?php echo wp_trim_words(get_the_title(),14); ?>
	                          </a>
	                        </div> 
				    	</li>
				<?php } endwhile;?>
			    <?php else: ?>
			        <div class="post"><p>文章稍后更新</p></div>
			    <?php endif; ?>
				</ul>
            </div>
			<?php wp_pagenavi(); ?>
		</div>
	</div>
	<div class="col-md-3">
		<?php get_sidebar(); ?>
	</div>
</div>


<?php get_footer(); ?>